package cglib;

import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

public class CallbackFilterImpl implements CallbackFilter {
    @Override
    public int accept(Method method) {
        String name = method.getName();
        if(name.endsWith("eat")){
            return 0;
        }else if(name.endsWith("enjoy")){
            return 0;
        }
        return 0;
    }
}
